package demo

import (
	"server/dao"
	"server/utils"

	"github.com/gin-gonic/gin"
)

func RdbListPushHandle(c *gin.Context) {
	key := c.Query("key")
	value := c.Query("value")
	dao.RdbLPush(key, value)
	// 正常返回数据
	c.JSON(
		200,
		utils.DealResponse(utils.Response{
			"data": "ok",
		}),
	)
}
